package com.ldk.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

//控制器层（接收请求，响应数据）
@Controller
public class UserController {
    //localhost:8080/login
    //写一个方法接收用户的请求
    @RequestMapping("/login")//接收 /login请求
    public String toPage(){
        return "login";// localhost:8080/WEB-INF/jsp/login.jsp
    }

    @RequestMapping("/reg")//接收 /login请求
    public String Page(){
        return "reg";// localhost:8080/WEB-INF/jsp/login.jsp
    }
}
